import request from '@/utils/request'
// const BASE_API_URL = '/admin/wx.template_message'
export function fetchList (query) {
  return request({
    url: '/admin/wx.template_message/index',
    method: 'GET',
    params: query
  })
}
export function fetchOne (id) {
  return request({
    url: '/admin/wx.template_message/read',
    method: 'GET',
    params: {
      id
    }
  })
}
export function updateOne(data) {
  return request({
    url: '/admin/wx.template_message/update',
    method: 'PUT',
    data
  })
}
export function createOne(data) {
  return request({
    url: '/admin/wx.template_message/save_msg',
    method: 'POST',
    data
  })
}
export function deleteOne(id) {
  return request({
    url: '/admin/wx.template_message/read',
    method: 'DELETE',
    params: {
      id
    }
  })
}
